const express=require('express');
const favicon =require('serve-favicon');

const loginRouter=require('./router/loginRouter');
const findoutRouter=require('./router/findoutRouter');
const wanshanjianliziliaoRouter=require('./router/wanshanjianliziliaoRouter');
const wanshanqiyeziliaoRouter=require('./router/wanshanqiyeziliaoRouter');
const zhiweiRouter =require('./router/zhiweiRouter');
const jianlizhongxinRouter=require('./router/jianlizhongxinRouter');
const zhiweiguanliRouter=require('./router/zhiweiguanliRouter');


const server=express();

server.use(favicon(__dirname+'/public/html/logo.ico'));
server.use(express.static(__dirname+'/public'));
server.use(express.json());
server.use(express.urlencoded({extended:true}));

server.use(loginRouter);
server.use(findoutRouter);
server.use(wanshanjianliziliaoRouter);
server.use(wanshanqiyeziliaoRouter);
server.use(zhiweiRouter);
server.use(jianlizhongxinRouter);
server.use(zhiweiguanliRouter)

server.listen(8080,function(){
    console.log('项目启动了')
});